package com.newMedical.medical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.newMedical.medical.mapper.HzMedicalMapper;
import com.newMedical.medical.domain.HzMedical;
import com.newMedical.medical.service.IHzMedicalService;

/**
 * 病历表Service业务层处理
 * 
 * @author zhou
 * @date 2021-11-30
 */
@Service
public class HzMedicalServiceImpl implements IHzMedicalService 
{
    @Autowired
    private HzMedicalMapper hzMedicalMapper;

    /**
     * 查询病历表
     * 
     * @param id 病历表主键
     * @return 病历表
     */
    @Override
    public HzMedical selectHzMedicalById(Long id)
    {
        return hzMedicalMapper.selectHzMedicalById(id);
    }

    /**
     * 查询病历表列表
     * 
     * @param hzMedical 病历表
     * @return 病历表
     */
    @Override
    public List<HzMedical> selectHzMedicalList(HzMedical hzMedical)
    {
        return hzMedicalMapper.selectHzMedicalList(hzMedical);
    }

    /**
     * 新增病历表
     * 
     * @param hzMedical 病历表
     * @return 结果
     */
    @Override
    public int insertHzMedical(HzMedical hzMedical)
    {
        return hzMedicalMapper.insertHzMedical(hzMedical);
    }

    /**
     * 修改病历表
     * 
     * @param hzMedical 病历表
     * @return 结果
     */
    @Override
    public int updateHzMedical(HzMedical hzMedical)
    {
        return hzMedicalMapper.updateHzMedical(hzMedical);
    }

    /**
     * 批量删除病历表
     * 
     * @param ids 需要删除的病历表主键
     * @return 结果
     */
    @Override
    public int deleteHzMedicalByIds(Long[] ids)
    {
        return hzMedicalMapper.deleteHzMedicalByIds(ids);
    }

    /**
     * 删除病历表信息
     * 
     * @param id 病历表主键
     * @return 结果
     */
    @Override
    public int deleteHzMedicalById(Long id)
    {
        return hzMedicalMapper.deleteHzMedicalById(id);
    }
}
